package homework.oo2.PersonExercise01;

public class PersonTest {
    public static void main(String[] args) {
        Student wh = new Student("王华",20,"昆仑虚","上仙班","001");
        wh.eat();
        wh.sleep();
        wh.sayHi();
        wh.study();

        System.out.println("==================");
        Teacher ll = new Teacher("李琳",21,"伊拉克",8000.0);
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.teach();

        System.out.println("===================");
        Doctor dl = new Doctor("大磊",23,"九龙城寨","寨主");
        dl.eat();
        dl.sleep();
        dl.sayHi();
        dl.cut();

    }
}
